package com.quiz.bis.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 错题统计实体类
 *
 * @author ahuan
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("wrong_question_stats")
public class WrongQuestionStats extends BaseModel {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;
    private Long bookId;
    private Date statDate;
    private Long totalCount;
    private Long newCount;
    private Long reviewCount;
    private Long masteredCount;
    private BigDecimal accuracyRate;
    private String knowledgeStats;
    private String typeStats;

    @TableField(exist = false)
    private WrongQuestionBook book;
}